package com.pcg.posgasstation;

import android.app.Application;

import com.pcg.posgasstation.model.network.ApiClient;
import com.pcg.posgasstation.utils.LogUtil;
import com.pcg.posgasstation.utils.PhoneUtils;

public class App extends Application {

    private static final String TAG = "好加满";

    private static App sInstance;
    private String mDeviceId;

    @Override
    public void onCreate() {
        super.onCreate();
        sInstance = this;
        mDeviceId = PhoneUtils.getIMEI();
        LogUtil.e(TAG, "device_id = " + mDeviceId);
        ApiClient.init();
    }

    public static App getInstance() {
        return sInstance;
    }

    public String getDeviceId() {
        return mDeviceId;
    }

}
